//
//  AboutUSViewController.m
//  WULIHH
//
//  Created by tang on 16/5/10.
//  Copyright © 2016年 tang. All rights reserved.
//

#import "AboutUSViewController.h"
#import <WebKit/WebKit.h>
#import "Header.h"

@interface AboutUSViewController ()




@end

@implementation AboutUSViewController


- (void)loadView
{
    [super loadView];
    [self.view setBackgroundColor:[UIColor colorWithRed:236.0/255.0 green:236.0/255.0 blue:236.0/255.0 alpha:1]];
    
    UIView *navigationView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 64)];
    [navigationView setBackgroundColor:[UIColor colorWithRed:242.0 /255.0 green:202.0 /255.0 blue:48.0/255.0 alpha:1]];
    [self.view addSubview:navigationView];
    
    UIImageView *leftimageView = [[UIImageView alloc] initWithFrame:CGRectMake(8, 29, 10, 20)];
    //    [leftimageView setBackgroundColor:[UIColor redColor]];
    [leftimageView setImage:[UIImage imageNamed:@"Detalback"]];
    [navigationView addSubview:leftimageView];
    
    UILabel *namelabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 29, WithView, 20)];
    [namelabel setText:_titleString];
    [namelabel setTextAlignment:NSTextAlignmentCenter];
    [namelabel setFont:[UIFont systemFontOfSize:16.0]];
    [navigationView addSubview:namelabel];
    
    UILabel *setUpLabel = [[UILabel alloc] initWithFrame:CGRectMake(23, 27, 33, 24)];
    [setUpLabel setText:@"返回"];
    [setUpLabel setTextAlignment:NSTextAlignmentCenter];
    [setUpLabel setFont:[UIFont systemFontOfSize:15.0]];
    [setUpLabel setTextColor:[UIColor blackColor]];
    [self.view addSubview:setUpLabel];
    
    UIButton *leftbtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 25, 60, 60)];
    [leftbtn addTarget:self action:@selector(leftEvent) forControlEvents:UIControlEventTouchUpInside];
    //    [leftbtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    //    [leftbtn.titleLabel setFont:[UIFont systemFontOfSize:15.0]];
    [navigationView addSubview:leftbtn];

    WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 64.0, WithView, heightView-64.0)];
    [self.view addSubview:webView];
    [webView loadRequest:[[NSURLRequest alloc] initWithURL:[NSURL URLWithString:_urlString]]];
}



- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



- (void)leftEvent
{
    [self.navigationController popViewControllerAnimated:YES];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
